package com.caimiao.miao.service;

import android.content.ComponentName;
import android.content.ServiceConnection;
import android.os.IBinder;

import com.caimiao.miao.interfaces.IBasePresenter;

public class MiaoServiceConnection implements ServiceConnection {
    private IBasePresenter mPresenter;

    public MiaoServiceConnection(IBasePresenter mPresenter) {
        this.mPresenter = mPresenter;
    }

    @Override
    public void onServiceConnected(ComponentName name, IBinder service) {
        mPresenter.setBinder((MiaoService.LocalBinder) service);
    }

    @Override
    public void onServiceDisconnected(ComponentName name) {

    }
}
